CPP  = g++
CC   = gcc

RES  = 
OBJ  = obj/ArithmeticException.o obj/ConditionAttributeException.o obj/ConditionException.o obj/ConnectException.o obj/Exception.o obj/FileNotFoundException.o obj/IOException.o obj/MutexAttributeException.o obj/MutexException.o obj/RuntimeException.o obj/SocketException.o obj/ThreadAttributeException.o obj/ThreadException.o obj/Throwable.o obj/IndexOutOfBoundsException.o $(RES)
LINKOBJ  = obj/ArithmeticException.o obj/ConditionAttributeException.o obj/ConditionException.o obj/ConnectException.o obj/Exception.o obj/FileNotFoundException.o obj/IOException.o obj/MutexAttributeException.o obj/MutexException.o obj/RuntimeException.o obj/SocketException.o obj/ThreadAttributeException.o obj/ThreadException.o obj/Throwable.o obj/IndexOutOfBoundsException.o $(RES)
LIBS =  
INCS =  -I"../../source" 
CXXINCS =  -I"../../source" 
BIN  = ../../lib/linux32/libexceptions.a
CXXFLAGS = $(CXXINCS)  
CFLAGS = $(INCS)  
RM = rm -f

.PHONY: all all-before all-after clean clean-custom

all: all-before ../../lib/linux32/libexceptions.a all-after


clean: clean-custom
	${RM} $(OBJ) $(BIN)

$(BIN): $(LINKOBJ)
	ar r $(BIN) $(LINKOBJ)
	ranlib $(BIN)

obj/ArithmeticException.o: ../../source/ArithmeticException.cpp
	$(CPP) -c ../../source/ArithmeticException.cpp -o obj/ArithmeticException.o $(CXXFLAGS)

obj/ConditionAttributeException.o: ../../source/ConditionAttributeException.cpp
	$(CPP) -c ../../source/ConditionAttributeException.cpp -o obj/ConditionAttributeException.o $(CXXFLAGS)

obj/ConditionException.o: ../../source/ConditionException.cpp
	$(CPP) -c ../../source/ConditionException.cpp -o obj/ConditionException.o $(CXXFLAGS)

obj/ConnectException.o: ../../source/ConnectException.cpp
	$(CPP) -c ../../source/ConnectException.cpp -o obj/ConnectException.o $(CXXFLAGS)

obj/Exception.o: ../../source/Exception.cpp
	$(CPP) -c ../../source/Exception.cpp -o obj/Exception.o $(CXXFLAGS)

obj/FileNotFoundException.o: ../../source/FileNotFoundException.cpp
	$(CPP) -c ../../source/FileNotFoundException.cpp -o obj/FileNotFoundException.o $(CXXFLAGS)

obj/IOException.o: ../../source/IOException.cpp
	$(CPP) -c ../../source/IOException.cpp -o obj/IOException.o $(CXXFLAGS)

obj/MutexAttributeException.o: ../../source/MutexAttributeException.cpp
	$(CPP) -c ../../source/MutexAttributeException.cpp -o obj/MutexAttributeException.o $(CXXFLAGS)

obj/MutexException.o: ../../source/MutexException.cpp
	$(CPP) -c ../../source/MutexException.cpp -o obj/MutexException.o $(CXXFLAGS)

obj/RuntimeException.o: ../../source/RuntimeException.cpp
	$(CPP) -c ../../source/RuntimeException.cpp -o obj/RuntimeException.o $(CXXFLAGS)

obj/SocketException.o: ../../source/SocketException.cpp
	$(CPP) -c ../../source/SocketException.cpp -o obj/SocketException.o $(CXXFLAGS)

obj/ThreadAttributeException.o: ../../source/ThreadAttributeException.cpp
	$(CPP) -c ../../source/ThreadAttributeException.cpp -o obj/ThreadAttributeException.o $(CXXFLAGS)

obj/ThreadException.o: ../../source/ThreadException.cpp
	$(CPP) -c ../../source/ThreadException.cpp -o obj/ThreadException.o $(CXXFLAGS)

obj/Throwable.o: ../../source/Throwable.cpp
	$(CPP) -c ../../source/Throwable.cpp -o obj/Throwable.o $(CXXFLAGS)

obj/IndexOutOfBoundsException.o: ../../source/IndexOutOfBoundsException.cpp
	$(CPP) -c ../../source/IndexOutOfBoundsException.cpp -o obj/IndexOutOfBoundsException.o $(CXXFLAGS)
